/*
angular.module('driver')
  .factory('$checkGPS', ['$q', function($q) {

    return {
      check: function () {
        
        var d = $q.defer();
        CheckGPS.check(function(){
            //GPS is enabled!
            d.resolve();
          },
          function(){
            //GPS is disabled!
            d.reject();
          });

        return d.promise;

      },
    }
}]);
*/